package cc.comac.mom.service.impl;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.AsrSearchService;
import cc.comac.mom.bean.AsrSearchBean;
import cc.comac.mom.datahandlers.entity.AsrSearchDataHandler;
import cc.comac.mom.util.ResultBean;

@Service
@RestController
public class AsrSearchServiceImpl implements AsrSearchService{

	@Autowired
	private AsrSearchDataHandler asrSearchDataHandler;
	
	@Override
	public ResultBean selectBySomeFeilds(@RequestBody AsrSearchBean asrSearch) {
		ResultBean selectBySomeFeilds = asrSearchDataHandler.selectBySomeFeilds(asrSearch);
		return selectBySomeFeilds;
	}

	@Override
	public String exportData(HttpServletRequest request, HttpServletResponse response, AsrSearchBean obj) {
		String exportData = asrSearchDataHandler.exportData(request, response, obj);
		return exportData;
	}
	

}
